#ifndef __PLAYER_H_
#define __PLAYER_H_

#include "prop.h"
#include "Scene.h"
#include <DynamicArray.h>
<<<<<<< HEAD
#include <MyString.h>
=======
>>>>>>> c412670cb91f5a48c84219f2f6837419b34335e7
struct Player
{
    int HP;
    int MAXHP;
    int ATK;
    int x;
    int y;
<<<<<<< HEAD
    char* symbol;
=======
    char symbol;
>>>>>>> c412670cb91f5a48c84219f2f6837419b34335e7
    int exp;
    int level;
    int golden;
    int DEF;
<<<<<<< HEAD
    weapon *wpn;
    medicament *med;
    defence *def;
=======
    int wpnid;
    int defid;
    weapon wpn;
    medicament med;
    defence def;
>>>>>>> c412670cb91f5a48c84219f2f6837419b34335e7
    //背包系统
    DArray bag;
};
typedef struct Player player;

void InitPlayer(player *p);
void PrintPlayer(player *p);
<<<<<<< HEAD
void PlayerMove(player *p,char *(*map)[MAPSZIE]);
=======
void PlayerMove(player *p,char (*map)[MAPSZIE]);
>>>>>>> c412670cb91f5a48c84219f2f6837419b34335e7
void LevelUp(player *p);

void ShopInterFace(player *p);
void ShowBag(player *p);

<<<<<<< HEAD
MyStr PlayerToString(player *p);

=======
>>>>>>> c412670cb91f5a48c84219f2f6837419b34335e7

#endif